home *** CD-ROM | disk | FTP | other *** search
/ CSi Master: Ableton Live 5 / CSi Master: Ableton Live 5.iso / pc / rsrc / locrsrc / controller.dir / Internal_2_Opne Windows (openGlossaryWindow, etc.).ls < prev    next >
Encoding:
Text File  |  2004-12-29  |  2.2 KB  |  75 lines

  1. on openIndexWindow
  2.   global gIndexWindow, PackageType
  3.   vWidth = 592
  4.   vHeight = 360
  5.   tell the stage
  6.     vPosH = the stageLeft + (((the stageRight - the stageLeft) / 2) - (vWidth / 2))
  7.   end tell
  8.   tell the stage
  9.     vPosV = the stageTop + (((the stageBottom - the stageTop) / 2) - (vHeight / 2))
  10.   end tell
  11.   gIndexWindow = window("Index Search")
  12.   gIndexWindow.fileName = the pathname & "cont-indexer"
  13.   gIndexWindow.windowType = 16
  14.   gIndexWindow.rect = rect(vPosH, vPosV, vPosH + vWidth, vPosV + vHeight)
  15.   open(gIndexWindow)
  16.   moveToFront(gIndexWindow)
  17. end
  18.  
  19. on openCDlistWindow
  20.   global gCDListWindow, PackageType
  21.   vWidth = 240
  22.   vHeight = 280
  23.   tell the stage
  24.     vPosH = the stageLeft + (((the stageRight - the stageLeft) / 2) - (vWidth / 2))
  25.   end tell
  26.   tell the stage
  27.     vPosV = the stageTop + (((the stageBottom - the stageTop) / 2) - (vHeight / 2))
  28.   end tell
  29.   gCDListWindow = window("CD List")
  30.   gCDListWindow.fileName = the pathname & "cont-cdlister"
  31.   gCDListWindow.windowType = 16
  32.   gCDListWindow.rect = rect(vPosH, vPosV, vPosH + vWidth, vPosV + vHeight)
  33.   open(gCDListWindow)
  34.   moveToFront(gCDListWindow)
  35. end
  36.  
  37. on openGlossaryWindow
  38.   global gGlossaryWindow, PackageType
  39.   vWidth = 592
  40.   vHeight = 360
  41.   tell the stage
  42.     vPosH = the stageLeft + (((the stageRight - the stageLeft) / 2) - (vWidth / 2))
  43.   end tell
  44.   tell the stage
  45.     vPosV = the stageTop + (((the stageBottom - the stageTop) / 2) - (vHeight / 2))
  46.   end tell
  47.   gGlossaryWindow = window("Glossary Search")
  48.   gGlossaryWindow.fileName = the pathname & "cont-glossary"
  49.   gGlossaryWindow.windowType = 16
  50.   gGlossaryWindow.rect = rect(vPosH, vPosV, vPosH + vWidth, vPosV + vHeight)
  51.   open(gGlossaryWindow)
  52. end
  53.  
  54. on openQuizListWindow
  55.   global gQuizListWindow, PackageType, TESTquizSPLIT
  56.   vWidth = 240
  57.   vHeight = 280
  58.   tell the stage
  59.     vPosH = the stageLeft + 440
  60.   end tell
  61.   tell the stage
  62.     vPosV = the stageTop + 180
  63.   end tell
  64.   gQuizListWindow = window("Quiz List")
  65.   if TESTquizSPLIT = "TEST" then
  66.     window("Quiz List").title = "Test List"
  67.   else
  68.     window("Quiz List").title = "Quiz List"
  69.   end if
  70.   gQuizListWindow.fileName = the pathname & "cont-quizlister"
  71.   gQuizListWindow.windowType = 16
  72.   gQuizListWindow.rect = rect(vPosH, vPosV, vPosH + vWidth, vPosV + vHeight)
  73.   open(gQuizListWindow)
  74. end
  75.